package ${package.Controller};

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import io.swagger.v3.oas.annotations.tags.Tag;
import ${package.Service}.*;
import ${package.Entity}.*;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>
/**
* <p>
* ${tableTitle}控制器
* </p>
*
* @author ${author}
* @since ${date}
* @project ${projectName}
*/
<#if restControllerStyle>
@RestController
<#else>
@Controller
</#if>
@RequestMapping("<#if controllerPathPrefix?? && controllerPathPrefix != "">/${controllerPathPrefix}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
@Tag(name = "${tableTitle}管理", description = "${tableDescription}") // 分组标签
<#if kotlin>
    class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
<#else>
    <#if superControllerClass??>
public class ${table.controllerName} extends ${superControllerClass}<${entity},${entity},${entity},${entity},${table.serviceName}> {
    <#else>
        public class ${table.controllerName} {
    </#if>

      @Autowired // 指定使用此构造方法进行注入
      public ${table.controllerName}(${table.serviceName} service) {
        super(service);
      }
}
</#if>
